<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 1.浏览器环境 -->
    <!-- 2.服务器 -->
    <script>
        // 变量它会在内存中占据一定的空间
        // es5
        var a = 10;
        // es6
        let b = 20;
        console.log(a);
    </script>
</body>
</html>